package com.Eastiy.EXO.Menu;

import android.content.Context;
import android.view.View;
import android.widget.Toast;
import com.Eastiy.EXO.Load;
import com.Eastiy.EXO.View.NewView;
import com.Eastiy.EXO.View.NewWindow;
import com.Eastiy.EXO.View.Tostbut;

public class PVP {
    private static NewWindow PVPcdv;
    /* access modifiers changed from: private */
    public static boolean aim = false;
    /* access modifiers changed from: private */
    public static boolean aim1 = false;
    private static boolean aim2 = false;
    /* access modifiers changed from: private */
    public static boolean aim3 = false;
    /* access modifiers changed from: private */
    public static boolean aim4 = false;
    /* access modifiers changed from: private */
    public static boolean aim5 = false;
    /* access modifiers changed from: private */
    public static boolean aim6 = false;
    /* access modifiers changed from: private */
    public static boolean aim7 = false;
    /* access modifiers changed from: private */
    public static boolean aim8 = false;
    private static NewView but;
    public static Context context;
    private static NewView pul;

    /* renamed from: H */
    public static int m10H() {
        return context.getResources().getDisplayMetrics().heightPixels;
    }

    /* renamed from: W */
    public static int m11W() {
        return context.getResources().getDisplayMetrics().widthPixels;
    }

    public static void dis() {
        if (PVPcdv != null) {
            NewWindow.dis();
            PVPcdv = null;
        }
    }

    public static void show(Context context2, boolean z) {
        context = context2;
        pul = new NewView(context2, (Object) null, (Object) null, "CT", new Integer(1), 2, (Object) null, (Object) null, (View.OnClickListener) null);
        but = new NewView(context2, new Integer(-2), new Integer(-2), "LC", new Integer(1), 2, (Object) null, (Object) null, (View.OnClickListener) null);
        new Tostbut(context2, but, 1, "一键神装", "</b><b>所以附魔属性同时添加", aim, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!PVP.aim) {
                    Load.addEnchant(0, 32767);
                    Load.addEnchant(2, 32767);
                    Load.addEnchant(1, 32767);
                    Load.addEnchant(3, 32767);
                    Load.addEnchant(4, 32767);
                    Load.addEnchant(5, 32767);
                    Load.addEnchant(6, 32767);
                    Load.addEnchant(7, 32767);
                    Load.addEnchant(8, 32767);
                    Load.addEnchant(9, 32767);
                    Load.addEnchant(10, 32767);
                    Load.addEnchant(11, 32767);
                    Load.addEnchant(12, 32767);
                    Load.addEnchant(13, 32767);
                    Load.addEnchant(14, 32767);
                    Load.addEnchant(15, 32767);
                    Load.addEnchant(16, 32767);
                    Load.addEnchant(17, 32767);
                    Load.addEnchant(18, 32767);
                    Load.addEnchant(19, 32767);
                    Load.addEnchant(20, 32767);
                    Load.addEnchant(21, 32767);
                    Load.addEnchant(22, 32767);
                    Load.addEnchant(23, 32767);
                    Load.addEnchant(24, 32767);
                    Load.addEnchant(25, 32767);
                    Load.addEnchant(26, 32767);
                    Load.addEnchant(29, 32767);
                    Load.addEnchant(30, 32767);
                    Load.addEnchant(31, 32767);
                    Load.addEnchant(32, 32767);
                    Load.addEnchant(33, 32767);
                    Load.addEnchant(34, 32767);
                    Load.addEnchant(35, 32767);
                    Toast.makeText(PVP.context, "附魔成功", 0).show();
                    PVP.aim = true;
                } else if (PVP.aim) {
                    Load.addEnchant(0, 32767);
                    Load.addEnchant(2, 32767);
                    Load.addEnchant(1, 32767);
                    Load.addEnchant(3, 32767);
                    Load.addEnchant(4, 32767);
                    Load.addEnchant(5, 32767);
                    Load.addEnchant(6, 32767);
                    Load.addEnchant(7, 32767);
                    Load.addEnchant(8, 32767);
                    Load.addEnchant(9, 32767);
                    Load.addEnchant(10, 32767);
                    Load.addEnchant(11, 32767);
                    Load.addEnchant(12, 32767);
                    Load.addEnchant(13, 32767);
                    Load.addEnchant(14, 32767);
                    Load.addEnchant(15, 32767);
                    Load.addEnchant(16, 32767);
                    Load.addEnchant(17, 32767);
                    Load.addEnchant(18, 32767);
                    Load.addEnchant(19, 32767);
                    Load.addEnchant(20, 32767);
                    Load.addEnchant(21, 32767);
                    Load.addEnchant(22, 32767);
                    Load.addEnchant(23, 32767);
                    Load.addEnchant(24, 32767);
                    Load.addEnchant(25, 32767);
                    Load.addEnchant(26, 32767);
                    Load.addEnchant(29, 32767);
                    Load.addEnchant(30, 32767);
                    Load.addEnchant(31, 32767);
                    Load.addEnchant(32, 32767);
                    Load.addEnchant(33, 32767);
                    Load.addEnchant(34, 32767);
                    Load.addEnchant(35, 32767);
                    Toast.makeText(PVP.context, "附魔成功", 0).show();
                    PVP.aim = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "荆棘之甲", "</b><b>保护反伤样样俱全", aim1, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!PVP.aim1) {
                    Load.addEnchant(0, 32767);
                    Load.addEnchant(2, 32767);
                    Load.addEnchant(1, 32767);
                    Load.addEnchant(3, 32767);
                    Load.addEnchant(4, 32767);
                    Load.addEnchant(5, 32767);
                    Load.addEnchant(6, 32767);
                    Load.addEnchant(7, 32767);
                    Load.addEnchant(17, 32767);
                    Load.addEnchant(26, 32767);
                    Toast.makeText(PVP.context, "附魔成功", 0).show();
                    PVP.aim1 = true;
                } else if (PVP.aim1) {
                    Load.addEnchant(0, 32767);
                    Load.addEnchant(2, 32767);
                    Load.addEnchant(1, 32767);
                    Load.addEnchant(3, 32767);
                    Load.addEnchant(4, 32767);
                    Load.addEnchant(5, 32767);
                    Load.addEnchant(6, 32767);
                    Load.addEnchant(7, 32767);
                    Load.addEnchant(17, 32767);
                    Load.addEnchant(26, 32767);
                    Toast.makeText(PVP.context, "附魔成功", 0).show();
                    PVP.aim1 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "一键神剑", "</b><b>万物皆可一刀秒", aim4, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!PVP.aim4) {
                    Load.addEnchant(9, 32767);
                    Load.addEnchant(10, 32767);
                    Load.addEnchant(11, 32767);
                    Load.addEnchant(12, 32767);
                    Load.addEnchant(13, 32767);
                    Load.addEnchant(14, 32767);
                    Load.addEnchant(17, 32767);
                    Load.addEnchant(26, 32767);
                    Toast.makeText(PVP.context, "附魔成功", 0).show();
                    PVP.aim4 = true;
                } else if (PVP.aim4) {
                    Load.addEnchant(9, 32767);
                    Load.addEnchant(10, 32767);
                    Load.addEnchant(11, 32767);
                    Load.addEnchant(12, 32767);
                    Load.addEnchant(13, 32767);
                    Load.addEnchant(14, 32767);
                    Load.addEnchant(17, 32767);
                    Load.addEnchant(26, 32767);
                    Toast.makeText(PVP.context, "附魔成功", 0).show();
                    PVP.aim4 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "一键神镐", "</b><b>万物皆可秒挖", aim5, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!PVP.aim5) {
                    Load.addEnchant(15, 32767);
                    Load.addEnchant(26, 32767);
                    Load.addEnchant(17, 32767);
                    Toast.makeText(PVP.context, "附魔成功", 0).show();
                    PVP.aim5 = true;
                } else if (PVP.aim5) {
                    Load.addEnchant(15, 32767);
                    Load.addEnchant(26, 32767);
                    Load.addEnchant(17, 32767);
                    Toast.makeText(PVP.context, "附魔成功", 0).show();
                    PVP.aim5 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "一键神弓", "</b><b>万物皆可秒的弓", aim3, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!PVP.aim3) {
                    Load.addEnchant(19, 32767);
                    Load.addEnchant(20, 32767);
                    Load.addEnchant(21, 32767);
                    Load.addEnchant(22, 32767);
                    Load.addEnchant(26, 32767);
                    Load.addEnchant(17, 32767);
                    Toast.makeText(PVP.context, "附魔成功", 0).show();
                    PVP.aim3 = true;
                } else if (PVP.aim3) {
                    Load.addEnchant(19, 32767);
                    Load.addEnchant(20, 32767);
                    Load.addEnchant(21, 32767);
                    Load.addEnchant(22, 32767);
                    Load.addEnchant(26, 32767);
                    Load.addEnchant(17, 32767);
                    Toast.makeText(PVP.context, "附魔成功", 0).show();
                    PVP.aim3 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "一键神弩", "</b><b>万物皆可秒的弩", aim6, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!PVP.aim6) {
                    Load.addEnchant(19, 32767);
                    Load.addEnchant(20, 32767);
                    Load.addEnchant(21, 32767);
                    Load.addEnchant(33, 32767);
                    Load.addEnchant(34, 32767);
                    Load.addEnchant(35, 32767);
                    Load.addEnchant(26, 32767);
                    Load.addEnchant(17, 32767);
                    Toast.makeText(PVP.context, "附魔成功", 0).show();
                    PVP.aim6 = true;
                } else if (PVP.aim6) {
                    Load.addEnchant(19, 32767);
                    Load.addEnchant(20, 32767);
                    Load.addEnchant(21, 32767);
                    Load.addEnchant(33, 32767);
                    Load.addEnchant(34, 32767);
                    Load.addEnchant(35, 32767);
                    Load.addEnchant(26, 32767);
                    Load.addEnchant(17, 32767);
                    Toast.makeText(PVP.context, "附魔成功", 0).show();
                    PVP.aim6 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "崩服神稿", "</b><b>挖任意东西直接崩服", aim7, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!PVP.aim7) {
                    Load.addEnchant(15, 32767);
                    Load.addEnchant(26, 32767);
                    Load.addEnchant(17, 32767);
                    Load.addEnchant(16, 32767);
                    Load.addEnchant(18, 32767);
                    Toast.makeText(PVP.context, "附魔成功", 0).show();
                    PVP.aim7 = true;
                } else if (PVP.aim7) {
                    Load.addEnchant(15, 32767);
                    Load.addEnchant(26, 32767);
                    Load.addEnchant(17, 32767);
                    Load.addEnchant(16, 32767);
                    Load.addEnchant(18, 32767);
                    Toast.makeText(PVP.context, "附魔成功", 0).show();
                    PVP.aim7 = false;
                }
            }
        }, (Object) null);
        new Tostbut(context2, but, 1, "崩服神靴", "</b><b>走到水面直接崩服", aim8, new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (!PVP.aim8) {
                    Load.addEnchant(25, 32767);
                    Load.addEnchant(0, 32767);
                    Load.addEnchant(2, 32767);
                    Load.addEnchant(1, 32767);
                    Load.addEnchant(3, 32767);
                    Load.addEnchant(4, 32767);
                    Load.addEnchant(5, 32767);
                    Load.addEnchant(6, 32767);
                    Load.addEnchant(7, 32767);
                    Load.addEnchant(17, 32767);
                    Load.addEnchant(26, 32767);
                    Toast.makeText(PVP.context, "附魔成功", 0).show();
                    PVP.aim8 = true;
                } else if (PVP.aim8) {
                    Load.addEnchant(25, 32767);
                    Load.addEnchant(0, 32767);
                    Load.addEnchant(2, 32767);
                    Load.addEnchant(1, 32767);
                    Load.addEnchant(3, 32767);
                    Load.addEnchant(4, 32767);
                    Load.addEnchant(5, 32767);
                    Load.addEnchant(6, 32767);
                    Load.addEnchant(7, 32767);
                    Load.addEnchant(17, 32767);
                    Load.addEnchant(26, 32767);
                    Toast.makeText(PVP.context, "附魔成功", 0).show();
                    PVP.aim8 = false;
                }
            }
        }, (Object) null);
        pul.addView(but);
        PVPcdv = new NewWindow(context2, pul, "附魔", z);
    }

    public void show() {
        PVPcdv.showAtLocation(pul, 17, (int) (((double) m11W()) * 0.05d), 0);
    }
}
